import Router, { RouteConfig } from "vue-router";
import GamePage from "@/page/GamePage.vue";
import MakePage from "@/page/MakePage.vue";
import ChoosePage from "@/page/ChoosePage.vue";

const routes: RouteConfig[] = [
	{
		path: "/",
		redirect: "/Choose"
	},
	{
		path: "/Choose",
		name: "Choose",
		component: ChoosePage
	},
	{
		path: "/game/:id",
		name: "Game",
		component: GamePage
	},
	{
		path: "/make/",
		name: "Make",
		component: MakePage
	},
];

export default new Router({ routes });
